#define _CRT_SECURE_NO_WARNINGS 1



#include<stdio.h>


int main()
{
	double m = 0, n = 0, sum = 0;
	scanf("%lf %lf", &m, &n);
	int i = 0;
	sum = m;
	for (i = 0; i < n - 1; i++)	
	{
		sum += m;
		m /= 2;
	}
	printf("%.2lf %.2lf\n", m / 2, sum);

	return 0;
}